Skip to content

IDE l1a: process multiple l0 files to produce one 10day CDF. #3178

Open
lacoak21 wants to merge 11 commits into
IMAP-Science-Operations-Center:devfrom
lacoak21:idex_l1a_process_multiple_l0_files_filter_and_sort
Open

IDE l1a: process multiple l0 files to produce one 10day CDF. #3178
lacoak21 wants to merge 11 commits into
IMAP-Science-Operations-Center:devfrom
lacoak21:idex_l1a_process_multiple_l0_files_filter_and_sort

Conversation

@lacoak21
Copy link
Copy Markdown
Contributor

@lacoak21 lacoak21 commented May 11, 2026

Change Summary

closes #3174
closes #IMAP-Science-Operations-Center/sds-data-manager#1303

Overview

Decom each l0 packet file, concat all of them together for each IDEX product type, and filter out events that are not in the 10-day window.

File changes

  • replace all -1week descriptors to -10days
  • Process a list of l0 files and concat and filter them.

Testing

TODO

@lacoak21 lacoak21 self-assigned this May 11, 2026
@lacoak21 lacoak21 added the Ins: IDEX Related to the IDEX instrument label May 11, 2026
@lacoak21 lacoak21 added this to IMAP May 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the IDEX processing pipeline to use 10-day window descriptors (replacing -1week) and adds multi-file L0 ingestion for L1A so multiple packet files can be concatenated and filtered into a single 10-day output window.

Changes:

  • Renames IDEX product descriptors from *-1week to *-10days across processing, CDF global attrs config, and tests.
  • Adds idex_l1a(packet_files, start_date) to parse multiple L0 files, concatenate per product type, and filter epochs to the configured 10-day window.
  • Introduces an IDEX-provided 10-day window lookup CSV and helper get_10_day_window_end_date() to determine window end dates.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
imap_processing/idex/idex_l1a.py Adds multi-file L1A entrypoint and window filtering; changes PacketParser.data to a dict keyed by product.
imap_processing/idex/idex_utils.py Adds get_10_day_window_end_date() that reads the IDEX 10-day window lookup CSV.
imap_processing/idex/idex_constants.py Adds IDEX_10_DAY_RANGES_PATH pointing at the new CSV.
imap_processing/idex/idex_10_day_CDF_names.csv New lookup table mapping start_date -> end_date for IDEX 10-day windows.
imap_processing/cli.py Switches IDEX L1A to call idex_l1a() and updates descriptors used in dependency queries.
imap_processing/cdf/config/imap_idex_global_cdf_attrs.yaml Updates IDEX Logical_source/Data_type strings to use -10days naming.
imap_processing/idex/idex_l1b.py Updates descriptor handling to sci-10days / msg-10days and adjusts global attrs for MSG.
imap_processing/idex/idex_l2b.py Updates only the example snippet (docstring) to reference sci-10days.
imap_processing/tests/idex/conftest.py Updates fixtures to use new PacketParser.data[...] keys and -10days filenames.
imap_processing/tests/idex/test_idex_l1a.py Updates expected filenames and adds unit tests for window end-date + date conversion.
imap_processing/tests/idex/test_idex_l1b.py Updates expected Logical_source/filenames and MSG descriptor usage.
imap_processing/tests/idex/test_idex_l2a.py Updates expected Logical_source/filenames and science descriptor usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread imap_processing/tests/idex/test_idex_l1a.py
Comment thread imap_processing/idex/idex_l1b.py Outdated
Comment thread imap_processing/idex/idex_l2b.py
Comment thread imap_processing/idex/idex_l1a.py Outdated
Comment thread imap_processing/idex/idex_10_day_CDF_names.csv
Copy link
Copy Markdown
Contributor

@tech3371 tech3371 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code changes looks good. I didn't look closely at tests.

Comment thread imap_processing/idex/idex_l1a.py Outdated
Comment thread imap_processing/idex/idex_l1a.py
Comment thread imap_processing/idex/idex_l1a.py Outdated
Comment thread imap_processing/spice/time.py
@lacoak21 lacoak21 force-pushed the idex_l1a_process_multiple_l0_files_filter_and_sort branch 2 times, most recently from 4680cab to 00a71f2 Compare May 15, 2026 18:15
@lacoak21 lacoak21 force-pushed the idex_l1a_process_multiple_l0_files_filter_and_sort branch from 00a71f2 to ff50c4f Compare May 15, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ins: IDEX Related to the IDEX instrument

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

IDEX infrastructure 10 day windows rename product descriptors from -1week to -10days

3 participants